package com.guohao.http;

import cn.hutool.http.Method;

public enum RequestMethod {
  GET,
  POST,
  HEAD,
  OPTIONS,
  PUT,
  DELETE,
  TRACE,
  CONNECT,
  PATCH;

  private RequestMethod() {
  }

  public static RequestMethod get(Method method) {
    return RequestMethod.valueOf(method.name());
  }
}